/* eslint-disable prettier/prettier */
import { createApp } from "vue"
import App from "./App.vue"
import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
//@ts-expect-error忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
import "virtual:svg-icons-register"
//引入自定义插件对象
// import SvgIndex from "./components/SvgIcon/Index.vue"
// app.component("SvgIndex", SvgIndex)
import gloalComponent from "./components/Idenx.ts"
import "./styles/index.scss"
//引入路由
import router from "./router/index.ts"
import pinia from "./store/index.ts"
import "./permission.ts"

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(router)
app.use(pinia)
app.use(gloalComponent)
app.use(ElementPlus)
app.mount("#app")
